<?php

namespace App\Models\Bill;

use Illuminate\Database\Eloquent\Model;

class BillPay extends Model
{

    protected $table = 'bill_pay';

    protected $primaryKey = 'bill_no';

    public $timestamps = false;

    public $incrementing = false;

    public static function getPay( $bill_no ) {

        $pay_data = self::where('bill_no',$bill_no)->get()->toArray();
        if ( !$pay_data ) {
            return [];
        }

        return $pay_data;
    }

}
